// const throttle = require('./throttle.js')
import  throttle from './throttle.js'
const resize = (calback, delay) => {
  window.addEventListener('resize', throttle(calback, delay));
}

export default resize
